Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

core/ui/src/commonMain/kotlin/org/meshtastic/core/ui/component/MenuFAB.kt 01cd54907d62cd90913d3d071b6bc240cae365ef (01cd5490) Text, 3.98 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.ui.component

Tff7b72import T7ee787androidx.compose.material3.ExperimentalMaterial3Api
Tff7b72import T7ee787androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
Tff7b72import T7ee787androidx.compose.material3.FloatingActionButtonMenu
Tff7b72import T7ee787androidx.compose.material3.FloatingActionButtonMenuItem
Tff7b72import T7ee787androidx.compose.material3.Icon
Tff7b72import T7ee787androidx.compose.material3.PlainTooltip
Tff7b72import T7ee787androidx.compose.material3.Text
Tff7b72import T7ee787androidx.compose.material3.ToggleFloatingActionButton
Tff7b72import T7ee787androidx.compose.material3.ToggleFloatingActionButtonDefaults
Tff7b72import T7ee787androidx.compose.material3.TooltipAnchorPosition
Tff7b72import T7ee787androidx.compose.material3.TooltipBox
Tff7b72import T7ee787androidx.compose.material3.TooltipDefaults
Tff7b72import T7ee787androidx.compose.material3.rememberTooltipState
Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787androidx.compose.ui.Alignment
Tff7b72import T7ee787androidx.compose.ui.Modifier
Tff7b72import T7ee787androidx.compose.ui.graphics.vector.ImageVector
Tff7b72import T7ee787androidx.compose.ui.platform.testTag
Tff7b72import T7ee787org.jetbrains.compose.resources.stringResource
Tff7b72import T7ee787org.meshtastic.core.resources.Res
Tff7b72import T7ee787org.meshtastic.core.resources.close
Tff7b72import T7ee787org.meshtastic.core.ui.icon.Close
Tff7b72import T7ee787org.meshtastic.core.ui.icon.MeshtasticIcons
Tff7b72import T7ee787org.meshtastic.core.ui.icon.OfflineShare

Tf0883e@OptInTb4b4b4(Te6edf3ExperimentalMaterial3ExpressiveApiTff7b72::Te6edf3classTb4b4b4, Te6edf3ExperimentalMaterial3ApiTff7b72::Te6edf3classTb4b4b4)
Tf0883e@Composable
Tff7b72fun Td2a8ffMenuFABTb4b4b4(
Te6edf3expandedTb4b4b4: Tffa657BooleanTb4b4b4,
Te6edf3onExpandedChangeTb4b4b4: Tb4b4b4(Tffa657BooleanTb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4,
Te6edf3itemsTb4b4b4: Te6edf3ListTff7b72<Te6edf3MenuFABItemTff7b72>Tb4b4b4,
Te6edf3modifierTb4b4b4: Te6edf3Modifier Tff7b72= Te6edf3ModifierTb4b4b4,
Te6edf3contentDescriptionTb4b4b4: Tffa657String? Tff7b72= Tff7b72nullTb4b4b4,
Te6edf3testTagTb4b4b4: Tffa657String? Tff7b72= Tff7b72nullTb4b4b4,
Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3stateAwareDescription Tff7b72= Tff7b72if Tb4b4b4(Te6edf3expandedTb4b4b4) Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3closeTb4b4b4) Tff7b72else Te6edf3contentDescription
Te6edf3FloatingActionButtonMenuTb4b4b4(
Te6edf3modifier Tff7b72= Te6edf3modifierTb4b4b4.Te6edf3thenTb4b4b4(Tff7b72if Tb4b4b4(Te6edf3testTag Tff7b72!Tff7b72= Tff7b72nullTb4b4b4) Te6edf3ModifierTb4b4b4.Te6edf3testTagTb4b4b4(Te6edf3testTagTb4b4b4) Tff7b72else Te6edf3ModifierTb4b4b4)Tb4b4b4,
Te6edf3expanded Tff7b72= Te6edf3expandedTb4b4b4,
Te6edf3button Tff7b72= Tb4b4b4{
Te6edf3TooltipBoxTb4b4b4(
Te6edf3positionProvider Tff7b72= Te6edf3TooltipDefaultsTb4b4b4.Te6edf3rememberTooltipPositionProviderTb4b4b4(Te6edf3TooltipAnchorPositionTb4b4b4.Te6edf3AboveTb4b4b4)Tb4b4b4,
Te6edf3tooltip Tff7b72= Tb4b4b4{ Te6edf3stateAwareDescriptionTff7b72?.Te6edf3let Tb4b4b4{ Te6edf3PlainTooltip Tb4b4b4{ Te6edf3TextTb4b4b4(Tffa657itTb4b4b4) Tb4b4b4} Tb4b4b4} Tb4b4b4}Tb4b4b4,
Te6edf3state Tff7b72= Te6edf3rememberTooltipStateTb4b4b4(Tb4b4b4)Tb4b4b4,
Tb4b4b4) Tb4b4b4{
Te6edf3ToggleFloatingActionButtonTb4b4b4(
Te6edf3checked Tff7b72= Te6edf3expandedTb4b4b4,
Te6edf3onCheckedChange Tff7b72= Te6edf3onExpandedChangeTb4b4b4,
Te6edf3content Tff7b72= Tb4b4b4{
Tff7b72val Te6edf3imageVector Tff7b72= Tff7b72if Tb4b4b4(Te6edf3expandedTb4b4b4) Te6edf3MeshtasticIconsTb4b4b4.Te6edf3Close Tff7b72else Te6edf3MeshtasticIconsTb4b4b4.Te6edf3OfflineShare
Te6edf3IconTb4b4b4(Te6edf3imageVector Tff7b72= Te6edf3imageVectorTb4b4b4, Te6edf3contentDescription Tff7b72= Te6edf3stateAwareDescriptionTb4b4b4)
Tb4b4b4}Tb4b4b4,
Te6edf3containerColor Tff7b72= Te6edf3ToggleFloatingActionButtonDefaultsTb4b4b4.Te6edf3containerColorTb4b4b4(Tb4b4b4)Tb4b4b4,
Tb4b4b4)
Tb4b4b4}
Tb4b4b4}Tb4b4b4,
Te6edf3horizontalAlignment Tff7b72= Te6edf3AlignmentTb4b4b4.Te6edf3EndTb4b4b4,
Tb4b4b4) Tb4b4b4{
Te6edf3itemsTb4b4b4.Te6edf3forEach Tb4b4b4{ Te6edf3item Tff7b72-Tff7b72>
Te6edf3FloatingActionButtonMenuItemTb4b4b4(
Te6edf3modifier Tff7b72= Tff7b72if Tb4b4b4(Te6edf3itemTb4b4b4.Te6edf3testTag Tff7b72!Tff7b72= Tff7b72nullTb4b4b4) Te6edf3ModifierTb4b4b4.Te6edf3testTagTb4b4b4(Te6edf3itemTb4b4b4.Te6edf3testTagTb4b4b4) Tff7b72else Te6edf3ModifierTb4b4b4,
Te6edf3onClick Tff7b72= Tb4b4b4{
Te6edf3itemTb4b4b4.Te6edf3onClickTb4b4b4(Tb4b4b4)
Te6edf3onExpandedChangeTb4b4b4(Tff7b72falseTb4b4b4)
Tb4b4b4}Tb4b4b4,
Te6edf3icon Tff7b72= Tb4b4b4{ Te6edf3IconTb4b4b4(Te6edf3itemTb4b4b4.Te6edf3iconTb4b4b4, Te6edf3contentDescription Tff7b72= Tff7b72nullTb4b4b4) Tb4b4b4}Tb4b4b4,
Te6edf3text Tff7b72= Tb4b4b4{ Te6edf3TextTb4b4b4(Te6edf3itemTb4b4b4.Te6edf3labelTb4b4b4) Tb4b4b4}Tb4b4b4,
Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}

Tff7b72data Tff7b72class T56d364MenuFABItemTb4b4b4(Tff7b72val Te6edf3labelTb4b4b4: Tffa657StringTb4b4b4, Tff7b72val Te6edf3iconTb4b4b4: Te6edf3ImageVectorTb4b4b4, Tff7b72val Te6edf3onClickTb4b4b4: Tb4b4b4(Tb4b4b4) Tff7b72-Tff7b72> Tffa657UnitTb4b4b4, Tff7b72val Te6edf3testTagTb4b4b4: Tffa657String? Tff7b72= Tff7b72nullTb4b4b4)

Served by rngit 1.5.0 - Generated in 0.05s